package com.yuantu.judiciary.dao;

import com.yuantu.judiciary.model.domain.SysFileDO;
import com.yuantu.judiciary.model.enums.FileRelativeType;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * 文件数据库操作接口
 *
 * @author syw
 * @since 2023-07-18
 **/
public interface ISysFileDao extends JpaRepository<SysFileDO, Long> {

    List<SysFileDO> findInfosByRelativeIdInAndRelativeTypeInAndDeletedFalse(List<Long> relativeIds, List<FileRelativeType> relativeTypes);

}
